package br.upe.portlet.estagio.service;


/**
 * <a href="ProfessorLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class provides static methods for the
 * <code>br.upe.portlet.estagio.service.ProfessorLocalService</code>
 * bean. The static methods of this class calls the same methods of the bean
 * instance. It's convenient to be able to just write one line to call a method
 * on a bean instead of writing a lookup call and a method call.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see br.upe.portlet.estagio.service.ProfessorLocalService
 *
 */
public class ProfessorLocalServiceUtil {
    private static ProfessorLocalService _service;

    public static br.upe.portlet.estagio.model.Professor addProfessor(
        br.upe.portlet.estagio.model.Professor professor)
        throws com.liferay.portal.SystemException {
        return getService().addProfessor(professor);
    }

    public static br.upe.portlet.estagio.model.Professor createProfessor(
        java.lang.String matricula) {
        return getService().createProfessor(matricula);
    }

    public static void deleteProfessor(java.lang.String matricula)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        getService().deleteProfessor(matricula);
    }

    public static void deleteProfessor(
        br.upe.portlet.estagio.model.Professor professor)
        throws com.liferay.portal.SystemException {
        getService().deleteProfessor(professor);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end) throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery, start, end);
    }

    public static br.upe.portlet.estagio.model.Professor getProfessor(
        java.lang.String matricula)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService().getProfessor(matricula);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Professor> getProfessors(
        int start, int end) throws com.liferay.portal.SystemException {
        return getService().getProfessors(start, end);
    }

    public static int getProfessorsCount()
        throws com.liferay.portal.SystemException {
        return getService().getProfessorsCount();
    }

    public static br.upe.portlet.estagio.model.Professor updateProfessor(
        br.upe.portlet.estagio.model.Professor professor)
        throws com.liferay.portal.SystemException {
        return getService().updateProfessor(professor);
    }

    public static br.upe.portlet.estagio.model.Professor addProfessor(
        long creatorUserId, long companyId, java.lang.String screenName,
        java.lang.String emailAddress, java.util.Locale locale,
        java.lang.String firstName, java.lang.String middleName,
        java.lang.String lastName, boolean male, int birthdayMonth,
        int birthdayDay, int birthdayYear, java.lang.String matricula,
        java.lang.String areaAtuacao, long codigoCurso, boolean disponivel,
        int numeroMaximoOrientandos,
        com.liferay.portal.service.ServiceContext serviceContext,
        java.util.Date createDate)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService()
                   .addProfessor(creatorUserId, companyId, screenName,
            emailAddress, locale, firstName, middleName, lastName, male,
            birthdayMonth, birthdayDay, birthdayYear, matricula, areaAtuacao,
            codigoCurso, disponivel, numeroMaximoOrientandos, serviceContext,
            createDate);
    }

    public static br.upe.portlet.estagio.model.Professor addProfessor(
        long creatorUserId, long companyId, boolean autoPassword,
        java.lang.String password1, java.lang.String password2,
        boolean autoScreenName, java.lang.String screenName,
        java.lang.String emailAddress, java.lang.String openId,
        java.util.Locale locale, java.lang.String firstName,
        java.lang.String middleName, java.lang.String lastName, int prefixId,
        int suffixId, boolean male, int birthdayMonth, int birthdayDay,
        int birthdayYear, java.lang.String jobTitle, long[] groupIds,
        long[] organizationIds, long[] roleIds, long[] userGroupIds,
        long[][] userGroupRoleIds, boolean sendEmail,
        com.liferay.portal.service.ServiceContext serviceContext,
        java.lang.String matricula, java.lang.String areaAtuacao,
        boolean coordenador, long codigoCurso, boolean disponivel,
        int numeroMaximoOrientandos, java.util.Date createDate)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService()
                   .addProfessor(creatorUserId, companyId, autoPassword,
            password1, password2, autoScreenName, screenName, emailAddress,
            openId, locale, firstName, middleName, lastName, prefixId,
            suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
            groupIds, organizationIds, roleIds, userGroupIds, userGroupRoleIds,
            sendEmail, serviceContext, matricula, areaAtuacao, coordenador,
            codigoCurso, disponivel, numeroMaximoOrientandos, createDate);
    }

    public static br.upe.portlet.estagio.model.Professor updateProfessor(
        java.lang.String oldPassword, java.lang.String newPassword1,
        java.lang.String newPassword2, boolean passwordReset,
        java.lang.String reminderQueryQuestion,
        java.lang.String reminderQueryAnswer, java.lang.String screenName,
        java.lang.String emailAddress, java.lang.String openId,
        java.lang.String languageId, java.lang.String timeZoneId,
        java.lang.String greeting, java.lang.String comments,
        java.lang.String firstName, java.lang.String middleName,
        java.lang.String lastName, int prefixId, int suffixId, boolean male,
        int birthdayMonth, int birthdayDay, int birthdayYear,
        java.lang.String smsSn, java.lang.String aimSn,
        java.lang.String facebookSn, java.lang.String icqSn,
        java.lang.String jabberSn, java.lang.String msnSn,
        java.lang.String mySpaceSn, java.lang.String skypeSn,
        java.lang.String twitterSn, java.lang.String ymSn,
        java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
        long[] roleIds,
        java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
        long[] userGroupIds, long[][] userGroupRoleIds,
        com.liferay.portal.service.ServiceContext serviceContext,
        java.lang.String matricula, java.lang.String areaAtuacao,
        long codigoCurso, boolean disponivel, int numeroMaximoOrientandos,
        java.util.Date modifiedDate)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService()
                   .updateProfessor(oldPassword, newPassword1, newPassword2,
            passwordReset, reminderQueryQuestion, reminderQueryAnswer,
            screenName, emailAddress, openId, languageId, timeZoneId, greeting,
            comments, firstName, middleName, lastName, prefixId, suffixId,
            male, birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn,
            facebookSn, icqSn, jabberSn, msnSn, mySpaceSn, skypeSn, twitterSn,
            ymSn, jobTitle, groupIds, organizationIds, roleIds, userGroupRoles,
            userGroupIds, userGroupRoleIds, serviceContext, matricula,
            areaAtuacao, codigoCurso, disponivel, numeroMaximoOrientandos,
            modifiedDate);
    }

    public static br.upe.portlet.estagio.model.Professor getProfessorByUser(
        com.liferay.portal.model.User user)
        throws br.upe.portlet.estagio.NoSuchProfessorException,
            com.liferay.portal.SystemException {
        return getService().getProfessorByUser(user);
    }

    public static br.upe.portlet.estagio.model.Professor getProfessorByUserId(
        long userid)
        throws br.upe.portlet.estagio.NoSuchProfessorException,
            com.liferay.portal.SystemException {
        return getService().getProfessorByUserId(userid);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Professor> getAllProfessoresDisponiveisByCodigoCurso(
        long codigoCurso) throws com.liferay.portal.SystemException {
        return getService()
                   .getAllProfessoresDisponiveisByCodigoCurso(codigoCurso);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Professor> getProfessoresDisponiveisByCodigoCurso(
        long codigoCurso, int start, int end)
        throws com.liferay.portal.SystemException {
        return getService()
                   .getProfessoresDisponiveisByCodigoCurso(codigoCurso, start,
            end);
    }

    public static int countProfessoresDisponiveisByCodigoCurso(long codigoCurso)
        throws com.liferay.portal.SystemException {
        return getService().countProfessoresDisponiveisByCodigoCurso(codigoCurso);
    }

    public static ProfessorLocalService getService() {
        if (_service == null) {
            throw new RuntimeException("ProfessorLocalService is not set");
        }

        return _service;
    }

    public void setService(ProfessorLocalService service) {
        _service = service;
    }
}
